package com.jvup.common.support;

import android.content.DialogInterface.OnCancelListener;

import com.qire.antsrouter.lifecycleHandler.ActivityManageHandler;
import com.jvup.common.support.base.BaseViewModel;
import com.jvup.common.support.base.IViewModel;

public abstract class AbsBringDialogViewModel<P extends IViewModel> extends BaseViewModel<P> {

    public void showDialog(String messageText){
        showDialog(messageText, false, null);
    }

    public void showDialog(CharSequence message, boolean cancelable, OnCancelListener cancelListener){

        CustomLoadDialog.show(ActivityManageHandler.HANDLER.currentActivity(), message, cancelable, cancelListener);
    }

    public void dismissDialog(){
        CustomLoadDialog.dismissDialog();
    }

}
